$(function() {
			var id = getParameter("focalDesktop.js", "id");

			var options = {
				queryKey : queryKey,
				pageSize : 30,
				showIdx : false,
				gridWidth : '99%',
				gridHeight : '250',
				// init param for groove.query, property querykey is reserved,
				// property method is reserved,
				// params for query restraint
				params : {
					// 核心企业入驻申请主键
					fcid : id
				},
				// init param for groove.view, property id is reserved
				viewParams : {
				// 视图数据初始化主键值
				// userId : userId
				},
				gridRender : function(grid) {
				}
			};
			var gridPanel = new $.grooveQuery(options);

			var gridPanel1 = new $.grooveQuery({
						queryKey : "fcorderlist4payment",
						pageSize : 30,
						showIdx : false,
						gridWidth : '99%',
						gridHeight : '250',
						// init param for groove.query, property querykey is
						// reserved,
						// property method is reserved,
						// params for query restraint
						params : {
							comptype : "renderOrderList4Payment"
						},
						// init param for groove.view, property id is reserved
						viewParams : {
			// 视图数据初始化主键值
						// userId : userId
						},
						gridRender : function(grid) {
						}
					});

			$("#pageloading").hide();
		});

function defaultFnRender(rowdata, rowindex, value, column) {
	if (column.name == "AU_DATE") {
		return formatDate(value);
	} else if (column.name == "AU_STATUS") {
		if (value == "-1") {
			return "拒绝授信";
		} else if (value == "0") {
			return "待授信";
		} else if (value == "1") {
			return "同意授信";
		}
		return value;
	}
	return value;
}

function renderOrderList4Payment(rowdata, rowindex, value, column) {
	if (column.name == "ID_PREPAYMENTDATE") {
		return formatDate(value);
	} else if (column.name == "SP") {
		return "<a href=\"javascript:void(0);\" onclick=\"javascript:paymentView('"
				+ value + "');\">支付</a>";
	}
	return value;
}

function paymentView(id) {
	document.location = context + "/site/focalCompany/12-1.jsp?id=" + id;
}
